﻿<UserControl x:Class="SilverlightOverview.XamlViewer"
             xmlns="http://schemas.microsoft.com/client/2007"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
             mc:Ignorable="d" d:DesignWidth="261" d:DesignHeight="286.772">
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height=".5*" />
            <RowDefinition Height=".5*" />
        </Grid.RowDefinitions>

        <ScrollViewer Margin="0,0,0,0" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
            <ContentControl x:Name="XamlContentControl" Height="Auto" Width="Auto" />
        </ScrollViewer>

        <TextBox x:Name="XamlTextBox" Grid.Row="1" TextChanged="XamlTextBox_TextChanged"
                 AcceptsReturn="True" Margin="0 8 0 0" TextWrapping="NoWrap"
                 HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"
                 FontFamily="Courier New" FontSize="12" />
        
        <Controls:GridSplitter Name="splitter" Grid.Row="1" ShowsPreview="True" Height="8"
                               HorizontalAlignment="Stretch" VerticalAlignment="Top" Canvas.ZIndex="1"
                               Visibility="Visible"
                               />
    </Grid>
</UserControl>
